from __future__ import unicode_literals

from django.db import models
from django.conf import settings
from online.utils import execute_sql


# Create your models here.

class User(models.Model):
    username = models.CharField(max_length=50)
    password = models.CharField(max_length=50)
    company = models.CharField(max_length=50)
    email = models.CharField(max_length=50)
    phonenumber = models.CharField(max_length=50)


class UserUpload(models.Model):
    username = models.CharField(max_length=50)
    headImg = models.FileField(upload_to='./upload/')

    def __unicode__(self):
        return self.username
